package cn.edu.zju.ops;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 本地启动容器，用于测试编写的代码（注意：测试前需要去掉 spring-context 的 provide 范围限制）
 * Start the container locally to test the code
 *
 * @author tjq
 * @since 2020/6/29
 */
public class ContainerLocalStarter {

    private static final String CONTEXT_CONFIG = "classpath*:oms-worker-container-spring-context.xml";

    public static void main(String[] args) throws Exception {

        ClassPathXmlApplicationContext rootContext = new ClassPathXmlApplicationContext(new String[]{CONTEXT_CONFIG}, true);

        System.out.println("Press any key to continue.");
        System.in.read();
    }
}
